﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Arkanoid
{
    class Alvo
    {
        public Texture2D textura;
        public Vector2 posicao;
        GraphicsDeviceManager graphics;
        public bool ativo = true;

        public Rectangle retangulo;

        public Alvo(GraphicsDeviceManager graphics, Texture2D textura, Vector2 posicao)
        {
            this.textura = textura;
            this.posicao = posicao;
            this.graphics = graphics;
        }

        public void Update()
        { 
        }

        public void Draw(SpriteBatch spritBatch)
        {
            if (ativo == true)
            {
                retangulo = new Rectangle((int)posicao.X + 1, (int)posicao.Y + 1, textura.Width - 2, textura.Height - 2);
                spritBatch.Draw(textura, posicao, Color.White);
            }  
        }
    }
}
